home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / DJEMU106.ARJ / E64.CC < prev    next >
C/C++ Source or Header  |  1991-04-22  |  458b  |  30 lines

  1. #include "emu.h"
  2. #include "rmov.h"
  3.  
  4. void emu_64()
  5. {
  6.   if (empty())
  7.     return;
  8.   if (modrm > 0277)
  9.   {
  10.     // fsubp st(i),st
  11.     int i = modrm & 7;
  12.     if (empty(i))
  13.       return;
  14.     reg tmp;
  15.     r_sub(st(), st(i), tmp);
  16.     r_mov(tmp, st(i));
  17.     st().tag = TW_E;
  18.     top++;
  19.     return;
  20.   }
  21.   else
  22.   {
  23.     // fisub m16int
  24.     reg t1, t2;
  25.     r_mov((short *)get_modrm(), t1);
  26.     r_sub(st(), t1, t2);
  27.     r_mov(t2, st());
  28.   }
  29. }
  30.